#ifndef GDN_RENDERIMAGE_H
#define GDN_RENDERIMAGE_H

#include <SFML/Graphics.hpp>

#include "gdn/Vector2.h"
#include "gdn/Sprite.h"
#include "gdn/Text.h"

namespace gdn
{
	class RenderImage
	{
		public:
			RenderImage();
			RenderImage( const RenderImage& toCopy );

			void Create( const Vector2i& theSize );

			Vector2< unsigned int > GetSize() const;

			void Clear();
			void Draw( const Sprite& draw );
			void Draw( const Text& draw );
			void Display();

			Image& GetImage() const;

			RenderImage& operator= ( const RenderImage& toCopy );

		protected:
			mutable Image image;
			sf::RenderImage renderImage;
	};
}

#endif // GDN_RENDERIMAGE_H

